<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSystemContentsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('system_contents', function (Blueprint $table) {
            $table->increments('id')->comment('系统配置文章表');
            $table->string('title', 255)->nullable()->comment('标题');
            $table->string('img', 255)->nullable()->comment('图片');
            $table->text('content')->nullable()->comment('内容');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('system_contents');
    }
}
